<include file="Public:pagerForm" />
<script type="text/javascript">
function reload15() {
    navTab.reload("__URL__", {});
}


function functr(){
	tbody=document.getElementById("tbodydd");
	objname=document.getElementsByName("ids");
	var zjz=0;
	var xhzjz=0;
    for(var i=0;i<objname.length;i++)
    {   
    	if(objname[i].checked)
        {   
    		zjz=zjz+parseFloat(tbody.rows[i].cells[12].firstChild.innerHTML);
    		xhzjz=xhzjz+parseFloat(tbody.rows[i].cells[13].firstChild.innerHTML);
        }
    } 
	var jz=document.getElementById("dd").cells[3];
	var ze=document.getElementById("dd").cells[5];
	jz.innerHTML=zjz;
	ze.innerHTML=xhzjz;
}
</script>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" rel="pagerForm" action="__URL__/priceentrypay/ids/{$ids}" method="post">
    <input type="hidden"  name="start" value="{$start}"/>
	<input type="hidden"  name="end" value="{$end}"/>
	<input type="hidden"  name="shipper" value="{$shipper}"/>
	<input type="hidden"  name="customer" value="{$customer}"/>
	<input type="hidden"  name="carstat" value="{$carstat}"/>
	<input type="hidden"  name="product" value="{$product}"/>
	<input type="hidden"  name="provider" value="{$provider}"/>
	<input type="hidden"  name="startaddress" value="{$startaddress}"/>
	<input type="hidden"  name="destination" value="{$destination}"/>
	<input type="hidden"  name="carno" value="{$carno}"/>
	<input type="hidden"  name="state" value="{$state}"/>
	<input type="hidden"  name="orders" value="{$orders}"/>
     <div class="searchBar">
		<ul class="searchContent">
			<li>
			</li>
		</ul>
		<div class="subBar">
			<ul>
			<li><a class="button" href="__URL__/retrieval" target="dialog" mask="true" rel="closeCurrent" title="查询框"><span>高级查询</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		    <li><a class="add" href="__URL__/add" target="dialog" mask="true" width="510" height="430"><span>新增</span></a></li>
            <li><a class="edit" href="__URL__/editton/id/{sid_controltable}" target="dialog" mask="true" warn="请选择节点" width="510" height="420"><span>吨数录入</span></a></li>
			<!-- <li><a class="delete" href="__URL__/foreverdelete/navTabId/__MODULE__" target="selectedTodo" postType="string" title="你确定要删除吗？" warn="请选择信息"><span>删除</span></a></li> -->
			<li><a class="edit" href="__URL__/edit/id/{sid_controltable}" target="dialog" mask="true" warn="请选择节点" width="510" height="420"><span>修改</span></a></li>
	        <li><a class="icon" href="__URL__/export" target="dwzExport" targetType="navTab" title="确实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
	        <li><a class="add" href="__URL__/progress/id/{sid_controltable}" target="dialog" width="620" height="380" mask="true"><span>调度进度</span></a></li>
		    <li><a class="icon" href="__URL__/unload/navTabId/__MODULE__" target="selectedTodo" postType="string" title="你确定要允许卸车吗？" warn="请选择信息"><span>允许卸车</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="#" onclick="reload15()"><span>刷新</span></a></li>
			 <li><a class="add" href="__URL__/addnote/id/{sid_controltable}"
				target="dialog" mask="true" rel="controlnote" warn="请选择记录" width="540" height="250"><span>增加备注</span></a></li>
		</ul>
	</div>


	<table class="table" width="110%" layoutH="138">
		<thead>
		<tr>
		    <th width="30" align="center"></th>	
		    <th width="140" align="center">订单号</th>
		     <!-- <th width="140" align="center">合同编号</th> -->
			<th width="140" align="center">发货方</th>
			<th width="140" align="center">客户</th>
			<th width="140" align="center">供应商</th>
			<th width="140" align="center">承运方</th>
			<th width="140" align="center">车牌号</th>
			<th width="140" align="center">起运地</th>
			<th width="150" align="center">目的地</th>
			<th width="140" align="center">接车人</th>
			<th width="150" align="center">车辆状态</th>
			<th width="120" align="center">产品种类</th>
			<th width="100" align="center">出厂净重</th>
			<th width="100" align="center">卸货净重</th>
			<th width="100" align="center">调度时间</th>
			<th width="100" align="center">盈亏</th>
			<th width="100" align="center">备注</th>
		</tr>
		</thead>
		<tbody id="tbodydd">
		<define name="number" value="1"/>
		<volist id="vo" name="list">
			<tr target="sid_controltable" rel="{$vo['id']}" ondblclick="controdbltable('sid_controltable',{$vo.id})">
			    <td><input type="checkbox" name="ids" value="{$vo['id']}" onclick="functr()"/></td>
			    <td>{$vo['orders']}</td>
				<td>{$vo['shipper']}</td>
				<td>
				<volist name="cus" id="cust" >
				<eq name="cust['id']" value="$vo.customer">{$cust['customername']}</eq>
				</volist></td>
				<td>
				<volist name="pro" id="voss" >
				<eq name="voss['id']" value="$vo.provider">{$voss['providername']}</eq>
				</volist>
				</td>
				<td>
				<volist name="carrier" id="vos" >
				<eq name="vos['id']" value="$vo.carrier">{$vos['carriername']}</eq>
				</volist>
				</td>
				<td>{$vo['carno']}</td>
				<td>{$vo['start']}</td>
				<td>{$vo['destination']}</td>
				<td>{$vo['userid']}</td>
				<td><eq name="vo.carstat" value="0">--请选择--</eq>
				<eq name="vo.carstat" value="2">待发货</eq>
				<eq name="vo.carstat" value="3">已发货</eq>
				<eq name="vo.carstat" value="1">运送完毕</eq>
				<td>{$vo['product']}</td>
				<td>{$vo['Factorynetweight']}</td>
				<td>{$vo['NetLandedWeight']}</td>
				<td>{$vo['controldate']}</td>
				<td>{$vo['loss']}</td>
				<td>{$vo['note']}</td>
			</tr>
		</volist>
		</tbody>
		<tbody name="dd">
        <tr id="dd">
        <td width="120" align="center"><b>合计</b></td>
		<td width="30" align="center"><b>共{$count}条</b></td>
		<td width="120" align="center"><b>总出厂净重(吨)</b></td>
		<td width="120" align="center"><b>{$zjz}</b></td>
		<td width="120" align="center"><b>总卸货净重(吨)</b></td>
		<td width="120" align="center"><b>{$xhzjz}</b></td>
		<td width="120" align="center"></td>
		</tr>
		</tbody>
	</table>
</div>

